﻿using SharpSnap.Plugins;
using System.Drawing;
using System.Drawing.Imaging;
using System.Threading.Tasks;

namespace PngExport
{
    public sealed class PngExportPlugin : IExportPlugin
    {
        public string FileExtension
        {
            get { return "png"; }
        }

        public async Task ExportBitmap(string path, Bitmap capture)
        {
            capture.Save(path, ImageFormat.Png);
        }
    }
}
